

package ex2.src;

//
// Immediately sends out any message it receives. It can optionally generate
// a message at the beginning of the simulation, to bootstrap the process.
//
simple Txc
{
    parameters:
        @display("i=block/routing");
        volatile double delay @unit(s);
        int numMessage = default(5);
        bool sendInitialMessage = default(false);
    gates:
        input in;
        output out;

}
//
//network Tictoc
//{
//    @display("bgb=233,127");
//    submodules:
//        tic: Txc {
//            parameters:
//                @display("i=,cyan");
//                sendInitialMessage =true;
//        }
//        toc: Txc {
//            parameters:
//                @display("i=,gold;p=168,56");
//        }
//    connections:
//        tic.out --> {  delay = 100ms; } --> toc.in;
//}
//
